package cn.livingCloud.dto;

import cn.livingCloud.entity.core.CaseStatus;

/**
 * Created by 唐旭 on 2016/6/13.
 */
public enum CaseListStatus {
    UN_COMPLETE("未完成", new CaseStatus[]{CaseStatus.NO_HANDLE, CaseStatus.ASSIGNMENT, CaseStatus.REPORT}), PENDING("待审核", new CaseStatus[]{CaseStatus.PENDING}), STUBBORN("持续未完成", new CaseStatus[]{CaseStatus.ASSIGNMENT, CaseStatus.REPORT}), LOCK("锁定", new CaseStatus[]{CaseStatus.LOCK}), COMPLETE("已完成", new CaseStatus[]{CaseStatus.FINISH, CaseStatus.CANCELLED});
    private String label;
    private CaseStatus[] status;

    CaseListStatus() {
    }

    CaseListStatus(String label) {
        this.label = label;
    }

    CaseListStatus(String label, CaseStatus[] status) {
        this.label = label;
        this.status = status;
    }

    public CaseStatus[] getStatus() {
        return status;
    }

    public CaseListStatus setStatus(CaseStatus[] status) {
        this.status = status;
        return this;
    }

    public String getLabel() {
        return label;
    }

    public CaseListStatus setLabel(String label) {
        this.label = label;
        return this;
    }

    public boolean isUnComplete() {
        return UN_COMPLETE.equals(this);
    }

    public boolean isComplete() {
        return COMPLETE.equals(this);
    }
}


